import { apiGo } from "./request.js";
import util from "@/utils/util";

// pinia
import { storeToRefs } from "pinia";
import { useUserStore } from "@/stores";
const { user } = storeToRefs(useUserStore());

export function getBackground() {
  // 背景图
  return apiGo.get(`/common/background-images`);
}

export function getBanner() {
  // 首页
  return apiGo.get(`/site/get_banner`);
}
